//============================================================================
// Name             : CSE325Project1.cpp
// Author           : Ahbiya Harris ; Alyza Villa
// Effort Division  : 50/50
// Copyright        : CSE325-12456 Embedded Microprocessor Systems
//				      Lab Project 1
//				      Spring 2013
// Description      : Bit manipulations function prototypes.
//============================================================================

#ifndef BITFUNCTIONS_H_
#define BITFUNCTIONS_H_

typedef int CF_LONGWord;
typedef unsigned char CF_Byte;
typedef short CF_Word;

void setBit(CF_LONGWord&, int);
void setBit(CF_LONGWord&, int, bool);
void setBits(CF_LONGWord&, int, int, CF_LONGWord);
void setByte(CF_LONGWord&, int, CF_Byte);
void setWord(CF_LONGWord&, int, CF_Word);
void clearBit(CF_LONGWord&, int);

bool getBit(CF_LONGWord, int);
CF_LONGWord getBits(CF_LONGWord, int, int);
CF_Byte getByte(CF_LONGWord, int);
CF_Word getWordLittleEndian(CF_LONGWord, int);
CF_Word getWordBigEndian(CF_LONGWord, int);

#endif
